package com.example.demo.Dao;

import com.example.demo.Entity.AdminApplication;
import com.example.demo.Entity.UnlockApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UnlockApplicationDao {
    public List<UnlockApplication> selectAllApplication();

    public UnlockApplication selectApplicationByUserID(String uid);

    public void addNewApplication(UnlockApplication unlockApplication);

    public void changeUsedByUserID(@Param("uid") String uid, @Param("used") boolean used);
}
